import request from "@/utils/request";

export function getAdminList(params) {
  return request({
    url: "back/admin?type=list",
    method: "get",
    params
  });
}

export function addAdmin(data) {
  return request({
    url: "back/admin?type=add",
    method: "post",
    data
  });
}

export function saveAdmin(data) {
  return request({
    url: "back/admin?type=save",
    method: "post",
    data
  });
}

export function adminDelete(data) {
  return request({
    url: "back/admin?type=delete",
    method: "post",
    data
  });
}
